﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;
using Zocono.WCS.Domain.EntityInfo;
using Zocono.WCS.Infrastructure.ApllicationDto.DtoWcsManage;

namespace Zocono.WCS.Domain.UserManageDomain
{
    public interface IUserRoleInfoService:IDomainService
    {
        Task<List<UserRoleInfoDto>> GetUserRoleInfos();
        Task<List<UserRoleInfoDto>> GetUserRoleInfos(long userID);

        /// <summary>
        /// 传入UserID和RoleID
        /// </summary>
        /// <param name="user"></param>
        /// <returns></returns>
        Task<bool> InsertUserRoleInfo(List<UserRoleInfoDto> user);

        Task<bool> DeleteUserRoleInfo(Expression<Func<UserRoleInfo, bool>> func);

        void Begin();

        void Commit();

        void RollBack();
    }
}
